<?php

namespace app\api\controller;

use app\api\controller\Base;
use app\goods\model\ImsEweiShopGoods;
use think\facade\Config;

class Index extends Base
{
    public function index()
    {
        $where  = [
            'status' => 1,
            'uniacid' => 2,
            'parent_merchid' => 0,
            'isrecommand' => 1,
        ];

        $goods_list = ImsEweiShopGoods::mk()->where($where)->limit(0,30)->select();

        $data['goods_list'] = ImsEweiShopGoods::formatDatas($goods_list);

        $this->echojson(0,'首页数据', $data);
    }

}
